//
//  WCINavigationView.m
//  WCImApp
//
//  Created by alfie on 2019/10/31.
//  Copyright © 2019 WCImApp. All rights reserved.
//

#import "WCINavigationView.h"


@implementation WCINavigationView


- (instancetype)initWithBackgroundColor:(UIColor *)color {
    self = [super initWithFrame:CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width, WCI_IPHONE_NAVIGATIONBAR_HEIGHT)];
    if (self) {
        if (color) self.backgroundColor = color ?: [UIColor assist_Nav_TabBar_Color];
    }
    return self;
}


- (UIView *)lineView {
    if (!_lineView) {
          _lineView = [[UIView alloc] initWithFrame:(CGRectMake(0, WCI_IPHONE_NAVIGATIONBAR_HEIGHT - 0.5, [[UIScreen mainScreen] bounds].size.width, 0.5))];
          _lineView.backgroundColor = [UIColor assist_Line_Color];
          [self addSubview:_lineView];
        [_lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.left.right.bottom.offset(0);
            make.height.offset(0.5);
        }];
    }
    return _lineView;
}



@end
